package router

import (
	"github.com/gin-gonic/gin"
	"zzqedu/controller/user"
)

func InitUserRouter(r *gin.RouterGroup) {
	userRouter := r.Group("user")
	{
		userRouter.POST("/list", user.List)
		userRouter.POST("", user.Add) //添加用户
		userRouter.GET("/:id", user.Detail)
		userRouter.PUT("/:id", user.Update) //修改用户
		userRouter.DELETE("/:id", user.Delete)
	}
}
